package com.project.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.project.bean.UserBean;
import com.project.dao.UserDao;
import com.project.service.UserService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


@Service
@Transactional
public class UserServiceImpl extends ServiceImpl<UserDao, UserBean> implements UserService {
    @Override
    public UserBean login(String name, String pwd) {
        QueryWrapper<UserBean> wrapper = new QueryWrapper<>();
        wrapper.eq("f_userName",name);
        wrapper.eq("f_password",pwd);
        return this.getOne(wrapper);
    }
}
